﻿USE [ShopDB]
GO

/****** Object:  StoredProcedure [dbo].[OrderGetByID]    Script Date: 04/12/2011 11:03:55 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[OrderGetByID]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[OrderGetByID]
GO

USE [ShopDB]
GO

/****** Object:  StoredProcedure [dbo].[OrderGetByID]    Script Date: 04/12/2011 11:03:55 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE PROCEDURE [dbo].[OrderGetByID] 
	@ID bigint
AS
BEGIN
	SELECT Orders.MerchandiserName, Orders.CustomerName, Orders.IsCompleted, Orders.CreateDate
	FROM Orders
	WHERE @ID = Orders.ID 
END

GO


